package com.clh.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.clh.seckill.pojo.User;
import com.clh.seckill.vo.LoginVo;
import com.clh.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cailinhu
 * @since 2021-10-26
 */
public interface UserService extends IService<User> {

   RespBean doLogin(LoginVo vo, HttpServletRequest request, HttpServletResponse response);

   /**
    * 用户注册
    * @param vo
    * @return
    */
   RespBean register(LoginVo vo);

   User getUserByCookie(String userTicket,HttpServletResponse response);
}
